home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMNSHTMLTextAreaElement.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  156 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMNSHTMLTextAreaElement.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMNSHTMLTextAreaElement_h__
  6. #define __gen_nsIDOMNSHTMLTextAreaElement_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIControllers; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIDOMNSHTMLTextAreaElement */
  21. #define NS_IDOMNSHTMLTEXTAREAELEMENT_IID_STR "ca066b44-9ddf-11d3-bccc-0060b0fc76bd"
  22.  
  23. #define NS_IDOMNSHTMLTEXTAREAELEMENT_IID \
  24.   {0xca066b44, 0x9ddf, 0x11d3, \
  25.     { 0xbc, 0xcc, 0x00, 0x60, 0xb0, 0xfc, 0x76, 0xbd }}
  26.  
  27. class NS_NO_VTABLE nsIDOMNSHTMLTextAreaElement : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNSHTMLTEXTAREAELEMENT_IID)
  31.  
  32.   /* readonly attribute nsIControllers controllers; */
  33.   NS_IMETHOD GetControllers(nsIControllers * *aControllers) = 0;
  34.  
  35.   /* readonly attribute long textLength; */
  36.   NS_IMETHOD GetTextLength(PRInt32 *aTextLength) = 0;
  37.  
  38.   /* attribute long selectionStart; */
  39.   NS_IMETHOD GetSelectionStart(PRInt32 *aSelectionStart) = 0;
  40.   NS_IMETHOD SetSelectionStart(PRInt32 aSelectionStart) = 0;
  41.  
  42.   /* attribute long selectionEnd; */
  43.   NS_IMETHOD GetSelectionEnd(PRInt32 *aSelectionEnd) = 0;
  44.   NS_IMETHOD SetSelectionEnd(PRInt32 aSelectionEnd) = 0;
  45.  
  46.   /* void setSelectionRange (in long selectionStart, in long selectionEnd); */
  47.   NS_IMETHOD SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd) = 0;
  48.  
  49. };
  50.  
  51. /* Use this macro when declaring classes that implement this interface. */
  52. #define NS_DECL_NSIDOMNSHTMLTEXTAREAELEMENT \
  53.   NS_IMETHOD GetControllers(nsIControllers * *aControllers); \
  54.   NS_IMETHOD GetTextLength(PRInt32 *aTextLength); \
  55.   NS_IMETHOD GetSelectionStart(PRInt32 *aSelectionStart); \
  56.   NS_IMETHOD SetSelectionStart(PRInt32 aSelectionStart); \
  57.   NS_IMETHOD GetSelectionEnd(PRInt32 *aSelectionEnd); \
  58.   NS_IMETHOD SetSelectionEnd(PRInt32 aSelectionEnd); \
  59.   NS_IMETHOD SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd); 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  62. #define NS_FORWARD_NSIDOMNSHTMLTEXTAREAELEMENT(_to) \
  63.   NS_IMETHOD GetControllers(nsIControllers * *aControllers) { return _to GetControllers(aControllers); } \
  64.   NS_IMETHOD GetTextLength(PRInt32 *aTextLength) { return _to GetTextLength(aTextLength); } \
  65.   NS_IMETHOD GetSelectionStart(PRInt32 *aSelectionStart) { return _to GetSelectionStart(aSelectionStart); } \
  66.   NS_IMETHOD SetSelectionStart(PRInt32 aSelectionStart) { return _to SetSelectionStart(aSelectionStart); } \
  67.   NS_IMETHOD GetSelectionEnd(PRInt32 *aSelectionEnd) { return _to GetSelectionEnd(aSelectionEnd); } \
  68.   NS_IMETHOD SetSelectionEnd(PRInt32 aSelectionEnd) { return _to SetSelectionEnd(aSelectionEnd); } \
  69.   NS_IMETHOD SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd) { return _to SetSelectionRange(selectionStart, selectionEnd); } 
  70.  
  71. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  72. #define NS_FORWARD_SAFE_NSIDOMNSHTMLTEXTAREAELEMENT(_to) \
  73.   NS_IMETHOD GetControllers(nsIControllers * *aControllers) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetControllers(aControllers); } \
  74.   NS_IMETHOD GetTextLength(PRInt32 *aTextLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextLength(aTextLength); } \
  75.   NS_IMETHOD GetSelectionStart(PRInt32 *aSelectionStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionStart(aSelectionStart); } \
  76.   NS_IMETHOD SetSelectionStart(PRInt32 aSelectionStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectionStart(aSelectionStart); } \
  77.   NS_IMETHOD GetSelectionEnd(PRInt32 *aSelectionEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionEnd(aSelectionEnd); } \
  78.   NS_IMETHOD SetSelectionEnd(PRInt32 aSelectionEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectionEnd(aSelectionEnd); } \
  79.   NS_IMETHOD SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectionRange(selectionStart, selectionEnd); } 
  80.  
  81. #if 0
  82. /* Use the code below as a template for the implementation class for this interface. */
  83.  
  84. /* Header file */
  85. class nsDOMNSHTMLTextAreaElement : public nsIDOMNSHTMLTextAreaElement
  86. {
  87. public:
  88.   NS_DECL_ISUPPORTS
  89.   NS_DECL_NSIDOMNSHTMLTEXTAREAELEMENT
  90.  
  91.   nsDOMNSHTMLTextAreaElement();
  92.  
  93. private:
  94.   ~nsDOMNSHTMLTextAreaElement();
  95.  
  96. protected:
  97.   /* additional members */
  98. };
  99.  
  100. /* Implementation file */
  101. NS_IMPL_ISUPPORTS1(nsDOMNSHTMLTextAreaElement, nsIDOMNSHTMLTextAreaElement)
  102.  
  103. nsDOMNSHTMLTextAreaElement::nsDOMNSHTMLTextAreaElement()
  104. {
  105.   /* member initializers and constructor code */
  106. }
  107.  
  108. nsDOMNSHTMLTextAreaElement::~nsDOMNSHTMLTextAreaElement()
  109. {
  110.   /* destructor code */
  111. }
  112.  
  113. /* readonly attribute nsIControllers controllers; */
  114. NS_IMETHODIMP nsDOMNSHTMLTextAreaElement::GetControllers(nsIControllers * *aControllers)
  115. {
  116.     return NS_ERROR_NOT_IMPLEMENTED;
  117. }
  118.  
  119. /* readonly attribute long textLength; */
  120. NS_IMETHODIMP nsDOMNSHTMLTextAreaElement::GetTextLength(PRInt32 *aTextLength)
  121. {
  122.     return NS_ERROR_NOT_IMPLEMENTED;
  123. }
  124.  
  125. /* attribute long selectionStart; */
  126. NS_IMETHODIMP nsDOMNSHTMLTextAreaElement::GetSelectionStart(PRInt32 *aSelectionStart)
  127. {
  128.     return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130. NS_IMETHODIMP nsDOMNSHTMLTextAreaElement::SetSelectionStart(PRInt32 aSelectionStart)
  131. {
  132.     return NS_ERROR_NOT_IMPLEMENTED;
  133. }
  134.  
  135. /* attribute long selectionEnd; */
  136. NS_IMETHODIMP nsDOMNSHTMLTextAreaElement::GetSelectionEnd(PRInt32 *aSelectionEnd)
  137. {
  138.     return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140. NS_IMETHODIMP nsDOMNSHTMLTextAreaElement::SetSelectionEnd(PRInt32 aSelectionEnd)
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144.  
  145. /* void setSelectionRange (in long selectionStart, in long selectionEnd); */
  146. NS_IMETHODIMP nsDOMNSHTMLTextAreaElement::SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd)
  147. {
  148.     return NS_ERROR_NOT_IMPLEMENTED;
  149. }
  150.  
  151. /* End of implementation class template. */
  152. #endif
  153.  
  154.  
  155. #endif /* __gen_nsIDOMNSHTMLTextAreaElement_h__ */
  156.